import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '@/views/Home.vue'
import HomeOne from '@/views/HomeOne.vue'
import HomeTwo from '@/views/HomeTwo.vue'
import HomeThree from '@/views/HomeThree.vue'
import HomeFour from '@/views/HomeFour.vue'
import DengLu from '@/views/DengLu.vue'
import ZhuCe from '@/views/ZhuCe.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    component: Home,
    children: [
      { path: '/', component: HomeOne },
      { path: '/home-2', component: HomeTwo },
      { path: '/home-3', component: HomeThree },
      { path: '/home-4', component: HomeFour }
    ]
  },
  { path: '/denglu', component: DengLu },
  { path: '/zhuce', component: ZhuCe }
]

const router = new VueRouter({
  routes
})

export default router
